#include<stdio.h>
/*
* I_3.c
*
*  Created on: May, 14, 2009
*      Author: yimingliu@fudan.edu.cn
*/

void funI_3()
{
	int x,y;
	scanf("%d",&x);
	if(x>0){
		y=x*x+1;
	}else if(x==0){
		y=0;
	}else{
		y=x*x-1;
	}
	printf("y=%d",y);
}